home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QRZ! Ham Radio 8
/
QRZ Ham Radio Callsign Database - Volume 8.iso
/
mac
/
files
/
infodata
/
callbook.tar
/
callbook_1.3
/
README
< prev
next >
Wrap
Text File
|
1991-03-31
|
3KB
|
53 lines
Due to a number of requests I'm releasing these sources. They are not in
the greatest of shape and certainly shouldn't be used to teach a course
in programming style, but they do work quite well.
The TODO file contains things I've been meaning to do for a while. If
anyone does any of them, please let me know. If you'd like to talk it
over before implementing, just drop me a line. I've thought most of them
through, but just don't have time to type them in.
There is very little in the way of documentation for this. If you're not
up on network programming, you'll have to learn a bit on your own before
plugging this in. This system consists of four programs; hash, endian,
callbook and canadian.
There is a large comment at the start of hash.c that explains how to
generate hash files for the database. The code is also short so you should
be able to resolve any conflict by reading the code.
The endian program just flips the byte ordering in the hash tables. I
needed to do this because our server (marvin) doesn't have enough swap
space to build the hash tables so they needed to be built on a different
machine. Since the two machines had a different byte ordering, I had to
write the endian program to flip the bytes around for marvin.
Of course, the callbook program is the server itself. It expects the
telnet protocol on stdin which is ideal if you want to run it out of
inetd.
And the canadian program is for translating the DOC format database into
the format that Rusty distributes so this server may read it. This program
is basically an AI (read "guessing") program that tries to parse the DOCs
very loose format and build as good of a strict FCC format as possible.
Since a lot of the code is just guessing, I don't guarentee that all the
entries get converted properly but initial estimates show that over 99%
do. Copies of this database that have already been translated are available
from ftp.cs.buffalo.edu.
Personally, I like to merge the US and Canadian databases by just cat'ing
them together. Then I sort them according to last name with the command
sort -b -d -f -t\| +1 -o callsign.sort -T tmp callsign
Of course, this take a long time and a *lot* of disk space. If you choose
to organize your database the same way be prepared to have at least 100 Meg
of disk space handy. Not sorting this way will work fine, too. The only
advantage to sorting is that the entries will then be printed to the user
in the order they are sorted.
Good luck and feel free to send any fixes/comments/questions to me at
the address below. 73...
Sun Mar 31 13:46:19 EST 1991 bowen@cs.buffalo.edu